package org.vacoor.nothing.misc.express.usps.api.track.field;

import org.vacoor.nothing.misc.express.usps.api.support.BooleanAdapter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * 追踪事件
 *
 * @author vacoor
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class TrackFieldEvent {
    @XmlElement(name = "EventTime")
    private String eventTime;
    @XmlElement(name = "EventDate")
    private String eventDate;
    @XmlElement(name = "Event")
    private String event;
    @XmlElement(name = "EventCity")
    private String eventCity;
    @XmlElement(name = "EventState")
    private String eventState;
    @XmlElement(name = "EventZIPCode")
    private String eventZipCode;
    @XmlElement(name = "EventCountry")
    private String eventCountry;
    @XmlElement(name = "FirmName")
    private String firmName;
    @XmlElement(name = "Name")
    private String name;
    @XmlElement(name = "AuthorizedAgent")
    @XmlJavaTypeAdapter(BooleanAdapter.class)
    private Boolean authorizedAgent;
    @XmlElement(name = "EventCode")
    private String eventCode;
    @XmlElement(name = "ActionCode")
    private String actionCode;
    @XmlElement(name = "ReasonCode")
    private String reasonCode;


    public String getEventTime() {
        return eventTime;
    }

    public String getEventDate() {
        return eventDate;
    }

    public String getEvent() {
        return event;
    }

    public String getEventCity() {
        return eventCity;
    }

    public String getEventState() {
        return eventState;
    }

    public String getEventZipCode() {
        return eventZipCode;
    }

    public String getEventCountry() {
        return eventCountry;
    }

    public String getFirmName() {
        return firmName;
    }

    public String getName() {
        return name;
    }

    public Boolean getAuthorizedAgent() {
        return authorizedAgent;
    }

    public String getEventCode() {
        return eventCode;
    }

    public String getActionCode() {
        return actionCode;
    }

    public String getReasonCode() {
        return reasonCode;
    }
}
